package icasue.tools.sqlhelper.adaptor.ibatis.mapper;

import icasue.reflect.annotations.NotNull;
import icasue.tools.sqlhelper.core.Consult;
import icasue.tools.sqlhelper.adaptor.annotation.AutoProvider;

/**
 * @Author: Qiao Hang
 * @CreateDate: 2021/11/12 上午9:39
 * @UpdateDate:
 * @Description:
 */
public interface Delete<JavaType> {
    @AutoProvider(method = "deleteByPrimary")
    void deleteByPrimary(@NotNull JavaType inst);

    @AutoProvider(method ="deleteSmart")
    void deleteSmart(@NotNull JavaType inst);

    @AutoProvider(method ="deleteByConsult")
    void deleteByConsult(@NotNull Consult<JavaType> consult);
}
